package com.ttms.dao;

import com.ttms.pojo.Schedule;

import java.util.List;

public interface ScheduleDao {

    public int addSchedule(Schedule schedule);

    public int deleteScheduleById(Integer id);

    public int updateSchedule(Schedule schedule);

    public Schedule queryScheduleById(Integer id);

    public List<Schedule> querySchedules();

    Integer queryForPageTotalCount();

    List<Schedule> queryForPageItems(int begin, int pageSize);

    List<Schedule> queryScheduleByPlayId(int begin, int pageSize, int id) ;

    Integer queryScheduleCountByPlayId(int id);
}
